//
//  BSButton.m
//  BaiSiBuDeJie
//
//  Created by 蔡一凡 on 8/29/16.
//  Copyright © 2016 tsaievan. All rights reserved.
//

#import "BSButton.h"

@interface BSButton ()

@end

@implementation BSButton


- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.titleLabel.font = [UIFont systemFontOfSize:12];
        self.titleLabel.textAlignment = NSTextAlignmentCenter;
    }
    return self;
}

- (CGRect)titleRectForContentRect:(CGRect)contentRect
{
   return  CGRectMake(0, contentRect.size.height - 12, contentRect.size.width, 8);
}


- (CGRect)imageRectForContentRect:(CGRect)contentRect
{
    return CGRectMake(0, 0, contentRect.size.width, contentRect.size.height - 8);
}




@end
